Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.liveconnect.google.drive.core.converters--converter

This contribution is part of XML component org.nuxeo.ecm.liveconnect.google.drive.core.converters inside nuxeo-liveconnect-google-drive-core-9.10.jar /OSGI-INF/convert-service-contrib.xml

Extension Point

Extension point converter of component ConversionServiceImpl.

Contributed Items

  • <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googlePDFExport">
          <sourceMimeType>application/vnd.google-apps</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
          <destinationMimeType>application/pdf</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleTextExport">
          <destinationMimeType>text/plain</destinationMimeType>
          <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
        </converter>
  • <converter name="google2text">
          <destinationMimeType>text/plain</destinationMimeType>
          <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
          <conversionSteps>
            <subconverter>googlePDFExport</subconverter>
            <subconverter>pdf2text</subconverter>
          </conversionSteps>
        </converter>
  • <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleHtmlExport">
          <destinationMimeType>text/html</destinationMimeType>
          <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
        </converter>

XML Source

<extension point="converter" target="org.nuxeo.ecm.core.convert.service.ConversionServiceImpl">

    <!-- PDF converter for Google Drive native files -->
    <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googlePDFExport">
      <sourceMimeType>application/vnd.google-apps</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
      <destinationMimeType>application/pdf</destinationMimeType>
    </converter>

    <!-- Text converter for files supporting text export -->
    <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleTextExport">
      <destinationMimeType>text/plain</destinationMimeType>
      <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
    </converter>

    <!-- Text converter for files without a plain text export -->
    <converter name="google2text">
      <destinationMimeType>text/plain</destinationMimeType>
      <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
      <conversionSteps>
        <subconverter>googlePDFExport</subconverter>
        <subconverter>pdf2text</subconverter>
      </conversionSteps>
    </converter>

    <!-- HTML converter for files supporting HTML export -->
    <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleHtmlExport">
      <destinationMimeType>text/html</destinationMimeType>
      <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
    </converter>
  </extension>